﻿@model mvcForum.Web.ViewModels.ForumViewModel
@using mvcForum.Web.Helpers;
@using CreativeMinds.MVC.Common.Helpers;
<!-- Views/Forum/LastTopicPartial.cshtml -->
<span><dfn>@ForumHelper.GetString("LastPost.LastPost") </dfn>@if (Model.LastPosted.HasValue) {
@ForumHelper.GetHtmlString("LastPost.By", new object[] { Model.LastUsername.Wrap("<a href=\"" + Url.RouteUrl("ShowProfile", new RouteValueDictionary { { "id", Model.AuthorId }, { "name", URLHelper.URLFriendlyString(Model.Author) } }) + "\">{#}</a>"), Model.LastPosted.Value.ToLocalDateTime() })
} else {
@ForumHelper.GetHtmlString("LastPost.NoPost")
}
</span>
